Moves to the next activity in the session. For UnstoredLearningSession, this is determined by a pre-order traversal of the activity tree and navigation rules as defined in the package manifest are not enforced. For a session that represents an active attempt, this is determined through sequencing rules of the package and the progress of the user through it.
Parent Type: LearningSession
Namespace: Microsoft.LearningComponents
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public virtual void MoveToNext () |
| Exception type | Condition |
| InvalidOperationException | Thrown if there is no current activity in the session or if the session is not in a state that allows moving to the next activity. |
| SequencingException | Thrown if a new activity could not be identified for delivery. |
This method requires a current activity in the session.
In the process of navigation, the current activity may be exited before the navigation command is able to complete. If the navigation command then throws a SequencingException, the state of the session is undefined. The current activity may have changed during this process.